package com.block.datapush.service.apipush.utils;

import cn.hutool.core.util.StrUtil;
import com.block.common.enums.BaseTypeInfoEnum;


/**
 * 奕民金服
 * */
public class YiMinJinFuUtil {

    public static Integer getHouse(String house){
        if (StrUtil.equals(BaseTypeInfoEnum.House.hu001.getValue(), house)){
            return 0;
        }
        return 1;
    }

    public static Integer getCar(String car){
        if (StrUtil.equals(BaseTypeInfoEnum.Car.car001.getValue(), car)){
            return 0;
        }
        return 1;
    }

    public static Integer getXinYongKa(String xinyongka){
        if (StrUtil.equals(BaseTypeInfoEnum.XinYongKa.xyk001.getValue(), xinyongka)){
            return 0;
        }
        return 1;
    }

    public static Integer getBaoXian(String baoxian){
        if (StrUtil.equals(BaseTypeInfoEnum.Baoxian.bx001.getValue(), baoxian)){
            return 0;
        }
        return 1;
    }

    public static Integer getSocial(String shebao){
        if (StrUtil.equals(BaseTypeInfoEnum.Shebao.sb001.getValue(), shebao)){
            return 0;
        }
        return 1;
    }

    public static Integer getFund(String fund){
        if (StrUtil.equals(BaseTypeInfoEnum.Gjj.gjj001.getValue(), fund)){
            return 0;
        }
        return 1;
    }

    public static String getLoan(String loan){
        if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la001.getValue(), loan)){
            return "30000";
        }else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la002.getValue(), loan)){
            return "50000";
        }else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la003.getValue(), loan)){
            return "100000";
        }else if (StrUtil.equals(BaseTypeInfoEnum.LoanAmount.la004.getValue(), loan)){
            return "200000";
        }
        return "250000";
    }





}
